Skip to content

Conversation

crandmck
Copy link
Collaborator

@crandmck crandmck commented Sep 16, 2025

Ths PR adds a GH worfkow based on https://github.com/creator-assertions/creator-assertions.github.io/blob/main/.github/workflows/publish.yml, which will build the docs using Sphinx and deploy them to GH Pages for consumption. We can then link to that from the OS doc site.

Temp online preview of generated docs: https://crandmck.github.io/c2pa-python-docs/

Note:

  • The script scripts/generate_api_docs.py generates docs into the api-docs/_build/html directory (to separate them from the handwritten markdown docs).
  • The Sphinx configuration is in api-docs/conf.py
  • Info on the API docs is in docs/project-contributions.md since (once we set up the automatic doc generation workflow) most users won't need to know how to generate the docs, unless contributing to the project.

@crandmck crandmck marked this pull request as draft September 16, 2025 19:37
@crandmck crandmck closed this Sep 16, 2025
@crandmck crandmck reopened this Sep 16, 2025
@crandmck crandmck changed the title Add sphinx API docs docs: Add sphinx API docs Sep 18, 2025
@crandmck crandmck marked this pull request as ready for review September 18, 2025 22:44
@tmathern tmathern self-requested a review September 19, 2025 17:55
* fix: Bump version to c2pa C ffi v0.65.0 (#167)

* chore: Bump version number (#168)

Prepare release for v0.23.0.

* fix: Tag on release

* fix: On release only
@tmathern tmathern self-requested a review September 20, 2025 02:55
@tmathern
Copy link
Collaborator

tmathern commented Sep 20, 2025

@crandmck I configured the repo so you can test publish from this branch. Once you merge, let me know and I'll remove the config for this specific branch (and keep only main). It is also configured to run this workflow from the main branch when a Github release is created. I had test deployments that worked, see https://contentauth.github.io/c2pa-python/. Feel free to merge when you are happy with how the docs look. (Note that the branch will need to be up-to-date with latest main to allow merging).

tmathern and others added 3 commits September 21, 2025 19:40
@tmathern tmathern merged commit 58e984e into main Sep 22, 2025
22 checks passed
@tmathern tmathern deleted the add-sphinx-docs branch September 22, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants